package com.example.hospital.api.db.dao;


import com.example.hospital.api.db.pojo.DrugEntity;
import org.springframework.transaction.annotation.Transactional;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

public interface DrugDao {
    public ArrayList<HashMap> searchByPage(Map param);

    public long searchCount(Map param);

    public ArrayList<HashMap> searchAllDrug();

    @Transactional
    public void insert(DrugEntity entity);

    public String searchIdByDrugid(String drugid);

    public HashMap searchAll();

    public HashMap searchById(int id);

    public void update(Map param);

    public long searchDoctorCount(Integer[] ids);

    public void deleteByIds(Integer[] ids);

}
